package com.jyxd.web.service.czform;

import com.jyxd.web.dao.czform.CRRTCureDao;
import com.jyxd.web.data.czform.CRRTCure;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class CRRTCureService {

    @Autowired
    private CRRTCureDao crrtCureDao;

    public boolean insert(CRRTCure crrtCure){
        return crrtCureDao.insert(crrtCure);
    }

    public boolean update(CRRTCure crrtCure){
        return crrtCureDao.update(crrtCure);
    }

    public CRRTCure queryData(String id){
        return crrtCureDao.queryData(id);
    }

    public List<CRRTCure> queryList(Map<String,Object> map){
        return crrtCureDao.queryList(map);
    }

    public int queryNum(Map<String,Object> map){
        return crrtCureDao.queryNum(map);
    }
}
